<div class="pageContent">
    <form method="post" action="{:U($module_name.'/tvtormbchumoney')}" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
        <div class="pageFormContent" layoutH="97">
            <input type="hidden" name="id" value="{$_GET['id']})" />
            <fieldset>
                <legend>
                    对账信息
                </legend>
                <dl>
                    <dt>
                        真实姓名：
                    </dt>
                    <dd>
                        {$vo.username}<input type="hidden" name="realname" value="{$vo.username}">
                    </dd>
                </dl>
                <dl>
                    <dt>
                        提现金额：
                    </dt>
                    <dd>
                        <font color="red">
                            {$bankpay.moneyprice}
                        </font>
                        元				<input id="moneyprice" type='hidden' value="{$bankpay.moneyprice}" />
                    </dd>
                </dl>
                <dl>
                    <dt>
                        提现收款卡号：
                    </dt>
                    <dd>
                        {$bankpay.kahao} 
                    </dd>
                </dl>
            </fieldset>
            
            <fieldset>
                <legend>
                    银行转款  
                </legend>
                <dl style="height:20px;">
                    <dt>
                        转款金额：
                    </dt>
                    <dd style="width:230px;">
						<input type="hidden" name="czmoney" id="czmoney" value="{$bankpay.moneyprice}"  />
                        <input type="text" size="12"  class='required input-text' id="amount" name="amount" value="{$bankpay.moneyprice}">
						元
                    </dd>
                </dl>
            </fieldset>
            <dl>
                    <dt>
                        银行转账流水号：
                    </dt>
                    <dd>
                        <input type="text" class="required input-text" name="liushuisn" value=""/>
                    </dd>
                </dl>
            <dl>
                <dt>
                    备注信息：
                </dt>
                <dd>
                    <input type="text" class="required input-text" name="bzvu" value=""/>
                    <br/>
                    进行转款操作时必须填写备注信息<input type="hidden" name="userid" value="{$vo['id']}" /><input type="hidden" name="forward" value="{$_SERVER['HTTP_REFERER']}" />
                </dd>
            </dl>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">
                                保存
                            </button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">
                                取消
                            </button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>
<script>
	$(function(){
		$("#amount").blur(function(){
			setvalue();	
			var amount = parseInt($(this).val());
			var moneyprice = parseInt($("#moneyprice").val());
			//var shouqi = parseInt($("#shouqi").val());
			if (amount < moneyprice) {
				$(this).css("border-color", "red");
				alertMsg.error('转款金额不能小于提现金额：' + moneyprice + '元!');
				
			} 
		});
		
	});
	function setvalue(){
		if($("#shouqi").val() == ''){
			$("#shouqi").val(0); 
		}
		
		if($("#cvqishu").val() == ''){
			$("#cvqishu").val(0);
		}
	}
</script>